package com.hcy.order_domain.service.impl;

import com.hcy.order_domain.entity.ServerOrderStatistics;
import com.hcy.order_domain.mapper.ServerOrderStatisticsMapper;
import com.hcy.order_domain.service.IServerOrderStatisticsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hcy.ordermodel.dto.response.HomeInfoResponseDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hcy
 * @since 2022-04-13
 */
@Service
public class ServerOrderStatisticsServiceImpl extends ServiceImpl<ServerOrderStatisticsMapper, ServerOrderStatistics> implements IServerOrderStatisticsService {

    @Resource
    ServerOrderStatisticsMapper serverOrderStatisticsMapper;

    @Override
    public HomeInfoResponseDTO getHomeStatistics(Integer driverId) {
        return serverOrderStatisticsMapper.getHomeStatistics(driverId);
    }
}
